package com.dragon.modules.yuegou.model.merchant;

import com.dragon.modules.yuegou.entity.merchant.UserJpushMessageEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 商户用户极光IM对应关系表模型类
 * 
 * @author pbuilder generated
 * @date 2020-03-11 16:02:02
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class UserJpushMessage extends UserJpushMessageEntity {

	/**
	 * 构造一个空商户用户极光IM对应关系表模型对象
	 */
	public UserJpushMessage(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个商户用户极光IM对应关系表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public UserJpushMessage(UserJpushMessageEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个商户用户极光IM对应关系表模型对象
	 * 
	 * @param other 其它对象
	 */
	public UserJpushMessage(UserJpushMessage other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public UserJpushMessage id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getMerchantId() {
    	return merchantId;
    }

    /**
	 * 设置
	 * 
	 * @param merchantId 
	 * @return 当前对象
	 */
    public UserJpushMessage merchantId(String merchantId) {
    	this.merchantId = merchantId;
    	return this;
    }

	@Override
	public String getMerchantUserId() {
    	return merchantUserId;
    }

    /**
	 * 设置
	 * 
	 * @param merchantUserId 
	 * @return 当前对象
	 */
    public UserJpushMessage merchantUserId(String merchantUserId) {
    	this.merchantUserId = merchantUserId;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置
	 * 
	 * @param createdTime 
	 * @return 当前对象
	 */
    public UserJpushMessage createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public Boolean getStatus() {
    	return status;
    }

    /**
	 * 设置状态，是否有效
	 * 
	 * @param status 状态，是否有效
	 * @return 当前对象
	 */
    public UserJpushMessage status(Boolean status) {
    	this.status = status;
    	return this;
    }

	@Override
	public String getJpushUsername() {
    	return jpushUsername;
    }

    /**
	 * 设置极光username
	 * 
	 * @param jpushUsername 极光username
	 * @return 当前对象
	 */
    public UserJpushMessage jpushUsername(String jpushUsername) {
    	this.jpushUsername = jpushUsername;
    	return this;
    }

	@Override
	public String getJpushPassword() {
    	return jpushPassword;
    }

    /**
	 * 设置极光密码
	 * 
	 * @param jpushPassword 极光密码
	 * @return 当前对象
	 */
    public UserJpushMessage jpushPassword(String jpushPassword) {
    	this.jpushPassword = jpushPassword;
    	return this;
    }

}
